# -*- coding:utf-8 -*-
import random


def create_several(num: int = 5) -> list:
    """
    双色球 生存若干注
    :param num: 注数
    :return: list
    """
    red: list = [idx for idx in range(1, 34)]
    blue: list = [idx for idx in range(1, 17)]
    ret = []
    chose_blue: list = random.sample(blue, num)
    chose_blue.sort()
    for b in chose_blue:
        chose_red: list = random.sample(red, 6)
        chose_red.sort()
        di = {"blue": str(b).zfill(2), "red": [str(i).zfill(2) for i in chose_red]}
        ret.append(di)
    return ret


if __name__ == "__main__":
    ret: list = create_several(5)
    print("红 -- -- -- -- -- -- 蓝 -- ")
    for di in ret:
        print("红 %s 蓝 %s" % (" ".join(di["red"]), di["blue"]))
